﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Revis.VClinicNet.Core.Domain
{
    public class PersonalData
    {
        public virtual string FirstName { get; protected set; }
        public virtual string Surname { get; protected set; }
        public virtual string Pesel { get; protected set; }
        public virtual Address Address { get; protected set; }

        #region Constructors

        public PersonalData()
        {
        }

        public PersonalData(string firstName, string surname, string pesel, Address address)
        {
            if (firstName == null) {
                throw new ArgumentNullException("Null firstName");
            }
            if (surname==null) {
                throw new ArgumentNullException("Null surname");
            }
            if (pesel == null) {
                throw new ArgumentNullException("Null pesel");
            }
            if (address == null) {
                throw new ArgumentNullException("Null address");
            }
            FirstName = firstName;
            Surname = surname;
            Pesel = pesel;
            Address = address;
        }

        #endregion
    }
}
